<?php

class ml_tool_expression
{
    static $replace;
    static public function haveExpressionImg($string)
    {
        if(strpos($string , '[') === false)
            return $string;
        else 
        {
            if(empty(self::$replace))
                self::$replace = ml_factory::load_standard_conf('expression');
            return strtr($string, self::$replace);
        }
    }
}